package com.sm.sales_management.service.impl;

import com.sm.sales_management.domain.Announcement;
import com.sm.sales_management.mapper.AnnouncementMapper;
import com.sm.sales_management.service.IAnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnouncementServiceImpl implements IAnnouncementService {

    @Autowired
    AnnouncementMapper announcementMapper;

    @Override
    public List<Announcement> selectAllAnnouncement() {
        return announcementMapper.selectAllAnnouncement();
    }

    @Override
    public Integer insertAnnouncement(Announcement announcement) {
        return announcementMapper.insertAnnouncement(announcement);
    }
}
